using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class GameUIPanel : SingleBase<GameUIPanel>
{

    public Button SettingBtn;
    public ScoreGroup ScoreGroup_1;
    public ScoreGroup ScoreGroup_2;
    private E_Speed tmp_Num;
    // Start is called before the first frame update
    private GameUIPanel() { }

    public override void Init()
    {
        base.Init();
        ScoreGroup_1.Init();
        ScoreGroup_2.Init();
        SettingBtn.onClick.AddListener(() =>
        {
            RythManger.Instance.ChangeSpeed((++tmp_Num));
            print(tmp_Num);
            if (tmp_Num == E_Speed.DontNeed) tmp_Num = E_Speed.First;
        });
    }
}
